level order traversal in python